﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucUserAddUpdate.ascx.cs" Inherits="MyWeb.Admin.Usercontrols.ucUserManager" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%--<script language="JavaScript" type="text/javascript">
    var RepeatState;
    window.onload = function () {
        if (document.getElementById("<%=ckDoimk.ClientID%>")) {
            RepeatState = document.getElementById("<%=ckDoimk.ClientID%>").checked;
            HideShowRepeat();
            document.getElementById("<%=ckDoimk.ClientID%>").onclick = function () {
                RepeatState = !RepeatState;
                HideShowRepeat();
            }
        }
    }

    function HideShowRepeat() {
        if (RepeatState) {
            document.getElementById("Row1").style.display = "";
            document.getElementById("Row2").style.display = "";
        } else {
            document.getElementById("Row1").style.display = "none";
            document.getElementById("Row2").style.display = "none";
        }
    }
</script>--%>
<div id="page-content">
    <div id="page-header">
        <h1>
            <asp:Label ID="lblPageHeader" runat="server" Text="Chi tiết thành viên"></asp:Label></h1>
    </div>
    <div class="container">
        <div class="box-header">
            <asp:Label ID="lblBoxHeader" runat="server" Text="Thông tin chi tiết"></asp:Label>
        </div>
        <div class="box">
            <table id="myTable" class="admintable" cellspacing="1" width="100%">
                <tr>
                    <td style="width: 120px" class="key"></td>
                    <td>
                        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" />
                    </td>
                </tr>
                <tr>
                    <td class="key">
                        <asp:Label ID="Label12" runat="server" Text="Ngày tạo:" Font-Bold="True"></asp:Label></td>
                    <td>
                        <asp:Label ID="txtDate" runat="server" Width="300px" Style="font-weight: 700"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="key">
                        <asp:Label ID="Label1" runat="server" Text="Tên người dùng:" Font-Bold="True"></asp:Label></td>
                    <td>
                        <asp:TextBox ID="txtUsername" runat="server" Width="300px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Tên người dùng không được bỏ trống" ControlToValidate="txtUsername" ForeColor="Red">(*)</asp:RequiredFieldValidator>
                    </td>
                </tr>
              <%--  <tr>
                    <td class="key">
                        <asp:Label ID="Label2" runat="server" Text="Đổi mật khẩu:" Font-Bold="True"></asp:Label></td>
                    <td>
                        <asp:CheckBox ID="ckDoimk" runat="server" />
                    </td>
                </tr>--%>
                <tr id="Row1">
                    <td class="key">
                        <asp:Label ID="lblmk" runat="server" Text="Mật khẩu:" Font-Bold="True"></asp:Label></td>
                    <td>
                        <asp:TextBox ID="txtPassword" runat="server" Width="300px" TextMode="Password"></asp:TextBox>
                    </td>
                </tr>
                <tr id="Row2">
                    <td class="key">
                        <asp:Label ID="lblremk" runat="server" Text="Nhập lại mật khẩu:" Font-Bold="True"></asp:Label></td>
                    <td>
                        <asp:TextBox ID="txtRePassword" runat="server" Width="300px" TextMode="Password"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="key">
                        <asp:Label ID="Label6" runat="server" Text="Tên đầy đủ:" Font-Bold="True"></asp:Label></td>
                    <td>
                        <asp:TextBox ID="txtName" runat="server" Width="300px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="Tên đầy đủ không được bỏ trống" ControlToValidate="txtName" ForeColor="Red">(*)</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="key">
                        <asp:Label ID="Label3" runat="server" Text="Ngày sinh:" Font-Bold="True"></asp:Label></td>
                    <td>
                        <asp:TextBox ID="txtBirthday" runat="server" Width="200px"></asp:TextBox>
                        <asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtBirthday"></asp:CalendarExtender>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ErrorMessage="Ngày sinh không được bỏ trống" ControlToValidate="txtBirthday" ForeColor="Red">(*)</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="key">
                        <asp:Label ID="Label5" runat="server" Text="Giới tính:" Font-Bold="True"></asp:Label></td>
                    <td>

                        <asp:DropDownList ID="ddlGender" runat="server" Width="70px" AutoPostBack="True">
                            <asp:ListItem Value="True">Nam</asp:ListItem>
                            <asp:ListItem Value="False">Nữ</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="key">
                        <asp:Label ID="Label7" runat="server" Text="Email:" Font-Bold="True"></asp:Label></td>
                    <td>
                        <asp:TextBox ID="txtEmail" runat="server" Width="200px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="Email không được bỏ trống" ControlToValidate="txtEmail" ForeColor="Red">(*)</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="key">
                        <asp:Label ID="Label9" runat="server" Text="Địa chỉ:" Font-Bold="True"></asp:Label></td>
                    <td>
                        <asp:TextBox ID="txtAddress" runat="server" Width="300px" Height="50px" TextMode="MultiLine"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="Địa chỉ không được bỏ trống" ControlToValidate="txtAddress" ForeColor="Red">(*)</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="key">
                        <asp:Label ID="Label11" runat="server" Text="Số điện thoại:" Font-Bold="True"></asp:Label></td>
                    <td>
                        <asp:TextBox ID="txtPhone" runat="server" Width="200px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ErrorMessage="Số điện thoại không được bỏ trống" ControlToValidate="txtPhone" ForeColor="Red">(*)</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="key">
                        <asp:Label ID="Label8" runat="server" Text="Quyền hạn:" Font-Bold="True"></asp:Label></td>
                    <td class="auto-style1">

                        <asp:DropDownList ID="ddlRule" runat="server" Width="150px" AutoPostBack="True">
                            <asp:ListItem Value="0">Khách hàng</asp:ListItem>
                            <asp:ListItem Value="1">Quản lý</asp:ListItem>
                            <asp:ListItem Value="2">Administrator</asp:ListItem>
                        </asp:DropDownList>
                </tr>
                <tr>
                    <td class="key">
                        <asp:Label ID="Label10" runat="server" Text="Kích hoạt:" Font-Bold="True"></asp:Label></td>
                    <td>
                        <asp:CheckBox ID="ckKichhoat" runat="server" Checked="True" />
                    </td>
                </tr>
            </table>
        </div>
        <div>
            <asp:Button ID="btnSave" runat="server" CssClass="button" Text="Lưu" OnClick="btnSave_Click" />
            <asp:Button ID="btnSaveAndNew" runat="server" CssClass="button" Text="Lưu & Thêm mới" OnClick="btnSaveAndNew_Click" />
            <asp:Button ID="btnCancelAdd" runat="server" CausesValidation="False" CssClass="button" Text="Đóng" OnClick="btnCancelAdd_Click" />
        </div>
    </div>
</div>
